package sg.edu.nus.iss.vmcs.customer;

import sg.edu.nus.iss.vmcs.store.CashStoreItem;
import sg.edu.nus.iss.vmcs.store.StoreItem;

/**
* This class is used to store the memento of StoreItem

*
* @version 1.0 16/10/2014
* @author  Team 7 PT 
*/
public class StoreMemento {

	
	private StoreItem items[];
	
	public StoreMemento(StoreItem _items[]){
		
		
		items = new CashStoreItem[_items.length];
		for (int i = 0; i < this.items.length; i++) {
			//StoreItem si = new CashStoreItem((Coin)(_items[i].getContent()),_items[i].getQuantity());
			//items[i] = si;
			items[i] = _items[i].clone();
		}
		
	}

	public StoreItem[] getItems() {
		return items;
	}

	public void setItems(StoreItem[] _items) {
		this.items = _items;
		
	}
	
	
	
	
}
